package com.buric.auth.service;

/**
 * <p>
 * 通用工具Service
 * </p>
 *
 * @author zhou.wei
 * @version 1.0
 * @since 2025/2/10 13:42
 */
public interface CommonService {

    /**
     * 获取验证码
     * @param captchaId 唯一ID
     * @param expireTime 过期时间
     * @return
     */
    String getCaptcha(String captchaId,Long expireTime);

    /**
     * 验证验证码
     * @param captchaId 唯一ID
     * @param captcha  验证码
     * @return
     */
    boolean checkCaptcha(String captchaId,String captcha);
}
